package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.BindTeachplanMediaDto;
import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import com.xuecheng.content.model.po.TeachplanMedia;

import java.util.List;

/**
 * @author cyf
 * @version 1.0
 * @description #课程计划相关接口
 * @date 2024/8/29 21:40
 **/
public interface TeachplanService {
    /**
     * @param courseId 课程id
     * @return List<TeachplanDto>
     * @date 2024/9/1     */
    List<TeachplanDto> findTeachplanTree(Long courseId);

    /**
     * 保存和更新课程计划信息
     * @param teachplanDto 课程计划信息
     * @date 2024/9/1     */
    void saveTeachplan(SaveTeachplanDto teachplanDto);

    /**
     * 删除课程计划
     * @param id 课程计划id
     * @date 2024/9/1     */
    void deleteTeachplan(Long id);


    void moveTeachplan(String moveType, Long id);

    /**
     * 教学计划绑定媒资
     * @param bindTeachplanMediaDto
     * @return com.xuecheng.content.model.po.TeachplanMedia
     */
    TeachplanMedia associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

    /**
     * 删除教学计划绑定媒资
     * @param teachPlanId
     * @param mediaId
     */
    void deleteAssociationMedia(String teachPlanId,String mediaId);
}
